export const constantRoute = [
  {
    //登录
    path: '/',
    component: () => import('@/views/login/index.vue'),
    name: 'login',
    meta: {
      title: '登录',
      hidden: true,
    },
  },
  {
    path: '/home',
    component: () => import('@/layout/index.vue'),
    name: 'layout',
    meta: {
      title: '首页',
      hidden: true,
    },
    redirect: '/homeq',
    children: [
      {
        path: '/homeq',
        component: () => import('@/views/home/index.vue'),
        meta: {
          title: '首页',
          hidden: false,
          icon: 'HomeFilled',
        },
      },
    ],
  },
  {
    path: '/home/change',
    component: () => import('@/layout/index.vue'),
    name: 'change',
    meta: {
      title: '公共路由',
      hidden: true,
      icon: 'HomeFilled',
    },
    redirect: '/home/changeq',
    children: [
      {
        path: '/home/changeq',
        component: () => import('@/layout/changeMenu/index.vue'),
        meta: {
          title: '公共路由',
          hidden: false,
          icon: 'HomeFilled',
        },
      },
    ],
  },
]

export const asnycRoute = [
  {
    path: '/acl',
    component: () => import('@/layout/index.vue'),
    name: 'Acl',
    meta: {
      title: '权限管理',
      icon: 'Lock',
    },
    redirect: '/acl/user',
    children: [
      {
        path: '/acl/user',
        component: () => import('@/views/acl/user/index.vue'),
        name: 'User',
        meta: {
          title: '用户管理',
          icon: 'User',
        },
      },
      {
        path: '/acl/role',
        component: () => import('@/views/acl/role/index.vue'),
        name: 'Role',
        meta: {
          title: '角色管理',
          icon: 'UserFilled',
        },
      },
      {
        path: '/acl/permission',
        component: () => import('@/views/acl/permission/index.vue'),
        name: 'Permission',
        meta: {
          title: '菜单管理',
          icon: 'Monitor',
        },
      },
    ],
  },
  {
    path: '/demo',
    component: () => import('@/layout/index.vue'),
    name: 'demoAcl',
    meta: {
      title: 'demo管理',
      icon: 'Lock',
    },
    redirect: '/demo/user',
    children: [
      {
        path: '/demo/user',
        component: () => import('@/views/demo/user/index.vue'),
        name: 'demoUser',
        meta: {
          title: 'demo003',
          icon: 'User',
        },
      },
      {
        path: '/demo/role',
        component: () => import('@/views/demo/role/index.vue'),
        name: 'demoRole',
        meta: {
          title: 'demo002',
          icon: 'UserFilled',
        },
      },
      {
        path: '/demo/permission',
        component: () => import('@/views/demo/permission/index.vue'),
        name: 'demoPermission',
        meta: {
          title: 'demo001',
          icon: 'Monitor',
        },
      },
    ],
  },
]
